﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Staticage.Core {
    /// <summary>
    /// 文件配置
    /// </summary>
    public abstract class FileConfiguration : IConfiguration {
        protected const string defaultSectionName = "configuration";
        protected string filePath;

        public FileConfiguration(string filePath) {
            this.filePath = filePath;
        }

        public abstract IConfiguration Select(string section);

        public abstract string GetValue(string key);

        public abstract IConfiguration SetValue(string key, object value);

        public abstract IConfiguration Save();
    }
}
